//Commit test
package com.gareve.twoSides.models;

import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector2;

public class GameObject {
	public Rectangle shape;
	
	public float WIDTH,HEIGHT;
	public float keyFrameTime;
	
	public GameObject(float x,float y,float width,float height){
		this.WIDTH = width;
		this.HEIGHT = height;
		this.shape = new Rectangle(x, y, WIDTH, HEIGHT);
		
		keyFrameTime = 0f;
	}
	
	public Vector2 getCenter(){
		return new Vector2(shape.x + shape.width/2f,shape.y + shape.height/2f);
	}
	
	public float getX() {
		return shape.x;
	}
	
	public float getY() {
		return shape.y;
	}
	
	public float getWidth() {
		return shape.width;
	}
	
	public float getHeight() {
		return shape.height;
	}
}
